import request from '@/utils/request'

/**
 * 微信支付配置分页查询
 * @param {查询条件} data
 */
export function listCorecmswechatpayconfig(query) {
  return request({
    url: 'pay/Corecmswechatpayconfig/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增微信支付配置
 * @param data
 */
export function addCorecmswechatpayconfig(data) {
  return request({
    url: 'pay/Corecmswechatpayconfig',
    method: 'post',
    data: data,
  })
}
/**
 * 修改微信支付配置
 * @param data
 */
export function updateCorecmswechatpayconfig(data) {
  return request({
    url: 'pay/Corecmswechatpayconfig',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取微信支付配置详情
 * @param {Id}
 */
export function getCorecmswechatpayconfig(id) {
  return request({
    url: 'pay/Corecmswechatpayconfig/' + id,
    method: 'get'
  })
}

/**
 * 删除微信支付配置
 * @param {主键} pid
 */
export function delCorecmswechatpayconfig(pid) {
  return request({
    url: 'pay/Corecmswechatpayconfig/delete/' + pid,
    method: 'POST'
  })
}
